package cn.stylefeng.guns.modular.business.frequency.transport.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.util.Date;

import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 运单
 *
 * @author yujie
 * @date 2023/05/09 17:15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tt_transport")
public class Transport extends BaseEntity {

    /**
     * id
     */
    @TableField(value = "id")
    private Long id;

    /**
     * transport_no
     */
    @TableId(value = "transport_no",type=IdType.AUTO)
    private Integer transportNo;

    /**
     * 承运方式 1.公司承运 2.三方承运
     */
    @TableField("type")
    private Integer type;

    /**
     * start_code
     */
    @TableField("start_code")
    private String startCode;

    /**
     * destination_code
     */
    @TableField("destination_code")
    private String destinationCode;

    /**
     * 状态0 待指派司机 1运输中 2已完成 3待交付 -1 已取消
     */
    @TableField("status")
    private Integer status;

    /**
     * 承运单位
     */
    @TableField("cargo_company")
    private String cargoCompany;

    /**
     * 司机
     */
    @TableField("driver_name")
    private String driverName;

    /**
     * 电话
     */
    @TableField("driver_phone")
    private String driverPhone;

    /**
     * 身份证号
     */
    @TableField("driver_card_number")
    private String driverCardNumber;

    /**
     * 车牌号
     */
    @TableField("license_plate_number")
    private String licensePlateNumber;

    /**
     * 结算人
     */
    @TableField("settlement_user")
    private String settlementUser;

    /**
     * 结算人电话
     */
    @TableField("settlement_phone")
    private String settlementPhone;

    /**
     * 结算人身份证
     */
    @TableField("settlement_card_number")
    private String settlementCardNumber;

    /**
     * 代收运费
     */
    @TableField("collection_fee")
    private BigDecimal collectionFee;

    /**
     * 应付司机费用
     */
    @TableField("driver_fee")
    private BigDecimal driverFee;

    /**
     * 欠返运费
     */
    @TableField("back_return_fee")
    private BigDecimal backReturnFee;

    /**
     * 到货跟踪状态 0.未跟踪  1.已跟踪 2.已到达
     */
    @TableField("logistics_status")
    private Integer logisticsStatus;

    /**
     * 预付款
     */
    @TableField("prepayment_fee")
    private BigDecimal prepaymentFee;

    /**
     * 路线
     */
    @TableField("line")
    private String line;

    /**
     * 供应商ID
     */
    @TableField("supplier_id")
    private Long supplierId;

    /**
     * 供应商结算人ID
     */
    @TableField("settlement_id")
    private Long settlementId;

    /**
     * 供应商司机ID
     */
    @TableField("driver_id")
    private Long driverId;

    /**
     * 运输方式 1.公路运输 2.铁路运输
     */
    @TableField("transport_type")
    private Integer transportType;

    /**
     * 车厢号
     */
    @TableField("compartment_no")
    private String compartmentNo;

    /**
     * 票号
     */
    @TableField("ticket_no")
    private String ticketNo;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id",fill = FieldFill.INSERT)
    private Long tenantId;

}
